#ifndef __TOUCH_SENSOR_TTP223_H
#define __TOUCH_SENSOR_TTP223_H

#include "stm32f4xx.h"
#include "delay.h"

typedef struct Device_TTP223StructDef{
    GPIO_TypeDef *gpioPort;
    uint16_t gpioPin;
    uint8_t lastState;
}Device_TTP223;

uint8_t BSP_TTP223_ReadAndUpdate(volatile Device_TTP223 *dv);
uint8_t BSP_TTP223_ReadAndUpdateIrq(volatile Device_TTP223 *dv, uint8_t inIrq);

#endif
